package com.netty4.protocol;

public enum MessageType {
    BUS_REQ("业务请求",0),
    BUS_RESP("业务应答",1),
    ONE_WAY("业务即使请求又是响应",2),
    LOGIN_REQ("握手请求",3),
    LOGIN_RESP("握手应答",4),
    HEARTBEAT_REQ("心跳请求",5),
    HEARTBEAT_RESP("心跳应答",6);

    MessageType(String typeName, int value) {
        this.typeName = typeName;
        this.value = value;
    }

    public String typeName;
    public int value;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
